import request from '@/utils/request'

// 查询入库单/出库单列表
export function listCertificate(query) {
  return request({
    url: '/emsboot/certificate/list',
    method: 'get',
    params: query
  })
}// 查询入库单/出库单列表
export function auditedListCertificate(query) {
  return request({
    url: '/emsboot/certificate/auditedList',
    method: 'get',
    params: query
  })
}

// 查询入库单/出库单详细
export function getCertificate(id) {
  return request({
    url: '/emsboot/certificate/' + id,
    method: 'get'
  })
}

// 新增入库单/出库单（
export function addCertificate(data) {
  return request({
    url: '/emsboot/certificate',
    method: 'post',
    data: data
  })
}

// 修改入库单/出库单
export function updateCertificate(data) {
  return request({
    url: '/emsboot/certificate',
    method: 'put',
    data: data
  })
}

// 删除入库单/出库单
export function delCertificate(id) {
  return request({
    url: '/emsboot/certificate/' + id,
    method: 'delete'
  })
}
